using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Algorhythm
{
    public class MusicInfo
    {
        int id;
        string title;
        string musician;
        int playingtime;
        byte level;
        string filename;
        string coverfilename;

        public MusicInfo()
        {
            this.id = 0;
            this.playingtime = 0;
            this.level = 0;
        }
                
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        public string Musician
        {
            get { return musician; }
            set { musician = value; }
        }

        public int PlayingTime
        {
            get { return playingtime; }
            set { playingtime = value; }
        }

        public byte Level
        {
            get { return level; }
            set { level = value; }
        }

        public string FileName
        {
            get { return filename; }
            set { filename = value; }
        }

        public string CoverFileName
        {
            get { return coverfilename; }
            set { coverfilename = value; }
        }
    };

    public class TimeBlock
    {
        List<int> indexBlocks;
        //int[] aIndexBlocks;
        int nTime;

        public int Time
        {
            set
            {
                nTime = value;
            }
            get
            {
                return nTime;
            }
        }

        public void AddIndex(int index)
        {
            indexBlocks.Add(index);
        }

        public List<int> Blocks
        {
            get
            {
                return indexBlocks;
            }
        }
        /*
        public int[] IndexBlocks
        {
            get
            {
                return aIndexBlocks;
            }
        }
        */
        public TimeBlock()
        {
            indexBlocks = new List<int>(12);
            //aIndexBlocks = new int[12];
        }
    }
}
